export interface ICreateDepartmentRequestData {
  name: string
  note: string
}

export interface IAddDepartmentRequestData {
  name: string
  note: string
  coding: string
}

export interface IUpdateDepartmentRequestData {
  id: string
  name: string
  note: string
  coding: string
}

export interface IGetDepartmentRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：账号 */
  name?: string
}

export interface IGetDepartmentData {
  id: number
  name: string
  note: string
  isDel: number
  coding: string
}

export type GetDepartmentResponseData = IApiResponseData<{
  list: IGetDepartmentData[]
  total: number
}>

export type GetDepartmentIdAndNameResponseData = IApiResponseData<{
  list: IGetDepartmentData[]
}>
